@import '../../../var';
@import '../../../common.scss';
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64rpx;
    max-width: 15em;
    text-align: left;
}

.user-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20rpx;
    .name {
        margin-left: $md;
    }
}

.container {
    background-color: $bgcolor-gray;
    .feed-wrap {
        padding: $xl;
        background-color: $bgcolor;
        .content {
            display: -webkit-box;
            margin-bottom: $md;
            margin-top: $md;
            overflow: hidden;
            line-height: 1.5 !important;
            text-overflow: ellipsis;
            word-wrap: break-word;
            word-break: break-all;
            // autoprefixer: on
            -webkit-box-orient: vertical;
            // autoprefixer: off
            color: $text-color;
        }
        .video-wrap {
            position: relative;
            height: 500rpx;
            .image {
                position: relative;
                width: 100%;
                height: 100%;
                overflow: hidden;
                background: $bgcolor-gray center / cover no-repeat;
                border-radius: 10rpx;
                &::after {
                    position: absolute;
                    top: 0;
                    right: 0;
                    bottom: 0;
                    left: 0;
                    display: block;
                    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.4) 100%);
                    content: '';
                }
            }
            .play-icon {
                position: absolute;
                bottom: 15rpx;
                left: 15rpx;
                width: 120rpx;
                height: 120rpx;
            }
        }
    }
    .info {
        display: flex;
        align-items: center;
        margin-top: $xl;
        .topic {
            flex: auto;
        }
        .mall {
            height: 44rpx;
            padding: 0 $lg;
            color: $text-color;
            font-size: $font-size-small;
            line-height: 44rpx;
            background-color: $bgcolor-gray;
            border-radius: 22rpx;
            max-width: 20em;
            .shop-icon {
                width: 23rpx;
                height: 21rpx;
            }
        }
        .date {
            flex: none;
            margin-left: auto;
            color: $info-color;
            font-size: $font-size-small;
        }
    }
}

.swiperBox {
    width: 690rpx;
    height: 230rpx;
    margin: auto;
    .swiperItem {
        image {
            width: 100%;
            height: 100%;
        }
    }
}

.comment-title {
    padding: $lg $xl;
    color: $info-color;
}

.comment-list {
    padding-bottom: 16rpx;
    background-color: #fff;
    .comment-item {
        display: flex;
        padding: 24rpx 28rpx 0;
        font-size: $font-size-small;
        background-color: $bgcolor;
        .avatar {
            flex: none;
            margin-right: 20rpx;
        }
        .main-wrap {
            flex: auto;
            padding-bottom: 24rpx;
            border-bottom: 1px solid $bgcolor-gray;
        }
        &:last-child .main-wrap {
            border-bottom: none;
        }
        .meta-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8rpx;
            font-size: 24rpx;
        }
        .time {
            color: $decor-color;
            font-size: 80%;
        }
        .username {
            margin-bottom: $sm;
            font-size: 26rpx;
            color: $title-color;
            font-weight: bold;
            text {
                color: $info-color;
                font-weight: normal;
            }
        }
        .content {
            color: $text-color;
            font-size: 28rpx;
            .user {
                color: $title-color;
            }
        }
    }
    .comment-child-item {
        width: 625rpx;
        margin-left: auto;
        display: flex;
        padding: 24rpx 0;
        margin-right: 28rpx;
        font-size: $font-size-small;
        background-color: $bgcolor;
        border-bottom: 1px solid $bgcolor-gray;
        .comment-more {
            font-size: 26rpx;
            color: #59B6D7;
        }
        .avatar {
            flex: none;
            margin-right: 20rpx;
        }
        .main-wrap {
            flex: auto;
        }
        .meta-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8rpx;
            font-size: 24rpx;
        }
        .time {
            color: $decor-color;
            font-size: 80%;
        }
        .username {
            margin-bottom: $sm;
            font-size: 26rpx;
            color: $title-color;
            font-weight: bold;
            text {
                color: $info-color;
                font-weight: normal;
            }
        }
        .content {
            color: $text-color;
            font-size: 28rpx;
            .user {
                color: $title-color;
            }
        }
    }
}

.comment-input-cover {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $zindex-cover;
    background-color: rgba(0, 0, 0, 0.4);
}

.comment-input-wrap {
    position: fixed;
    bottom: 0;
    z-index: $zindex-navigator;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100rpx;
    padding: $lg;
    background-color: $bgcolor;
    border-top: 1px solid $bgcolor-gray;
    .input {
        flex: auto;
        height: 100%;
        margin-right: $lg;
        padding: 0 1em;
        font-size: $font-size-small;
        border: 1px solid $border-color;
        border-radius: 50rpx;
        color: $title-color;
    }
    .icon-wrap {
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80rpx;
        color: $info-color;
        font-size: $font-size-small;
        .image {
            display: block;
            width: 36rpx;
            height: 36rpx;
            font-size: 40rpx;
            line-height: 36rpx;
            &.dot {
                transform: translateY(-7px);
            }
        }
        // .download-icon {
        //   animation: 2s ease infinite up-down-float;
        // }
        .label {
            font-size: $font-size-small * 0.9;
            white-space: nowrap;
        }
    }
}

@keyframes up-down-float {
    0%,
    50%,
    100% {
        transform: translateY(0rpx);
    }
    25% {
        transform: translateY(-10rpx);
    }
}

.no-comment {
    margin-top: 32rpx;
    padding: 150rpx;
    color: $info-color;
    background-color: #fff;
    text-align: center;
}